package com.ssh.biz.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.ssh.biz.IPetdiaryBiz;
import com.ssh.dao.BaseDao;
import com.ssh.entity.Petdiary;
@Service
public class PetdiaryBizImpl extends BaseDao<Petdiary> implements IPetdiaryBiz {

	public void delPetdiary(Petdiary petdiary) {
		
		this.delete(petdiary);
	}

	public List<Petdiary> findAllPetdiary() {
		
		return this.findAll();
	}

	public Petdiary findPetdiaryByID(int id) {
		
		return this.find(id);
	}

	public void savePetdiary(Petdiary petdiary) {
		
		this.save(petdiary);
	}

	public void updatePetdiary(Petdiary petdiary) {
		
		this.update(petdiary);
	}

}
